package sjsu.android;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ScrollView;

public class FitnessEducation extends Activity{
	Button  email,yoga,meditation,breathing;
	private ScrollView scr1;
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.fitnesseducation);
       
       scr1 = (ScrollView)findViewById(R.id.ScrollView01);
       scr1.setVerticalScrollBarEnabled(true);
       
        email = (Button) findViewById(R.id.Button01);
        yoga = (Button) findViewById(R.id.Button02);
        meditation = (Button) findViewById(R.id.Button03);
        breathing = (Button) findViewById(R.id.Button04);
        yoga.setBackgroundColor(0xAA999999);
        meditation.setBackgroundColor(0xAA999999);
        breathing.setBackgroundColor(0xAA999999);
        
        email.setOnClickListener(new clicker());
        yoga.setOnClickListener(new clicker());
        meditation.setOnClickListener(new clicker());
        breathing.setOnClickListener(new clicker());
       
    }
	class  clicker implements Button.OnClickListener {              
    	@Override
    	public void onClick(View v) {
    		if(v == yoga){
    			 Intent intent = new Intent(FitnessEducation.this, Yoga.class);
            	 startActivity(intent);
    		}
    	}
	}
    
}




